package util;

public class Factory {
    
    private static TicketDAO ticketDAO = null;
    private static Factory instance = null;

    public static synchronized Factory getInstance() {
          if (instance == null) {
            instance = new Factory();
          }
          return instance;
    }

    public TicketDAO getTicketDAO() {
          if (ticketDAO == null) {
        	  ticketDAO = new TicketDAO();
          }
          return ticketDAO;
    }   
}
